﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<MensUnoShop.Models.Member>" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>MemberDetailView</title>
    <link href="/Content/Admin/c/style.css" rel="stylesheet" type="text/css" />
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="/Scripts/superfish.js"></script>
	<script type="text/javascript" src="/Scripts/tooltip.js"></script>
	<script type="text/javascript" src="/Scripts/cookie.js"></script>
    <script type="text/javascript" src="/Scripts/custom.js"></script>
</head>
<body>
    <div class="hastable">
<%if (Model != null)
      {%>
    <table cellspacing="0">
        <tr>
            <th>帳號(E-Mail)</th>
            <td><%:Model.EMAIL%></td>
        </tr>
        <tr>
            <th>姓名</th>
            <td><%:Model.LASTNAME%> <%:Model.FIRSTNAME%></td>
        </tr>
        <tr>
            <th>性別</th>
            <td><%if (Model.SEX)
                  {%>男<% }
                  else
                  {%>女<% }%></td>
        </tr>
        <tr>
            <th>生日</th>
            <td><%:Model.BIRTH%></td>
        </tr>
        <tr>
            <th>電話(O)</th>
            <td><%:Model.TELO%></td>
        </tr>
        <tr>
            <th>電話(H)</th>
            <td><%:Model.TELH%></td>
        </tr>
        <tr>
            <th>行動電話</th>
            <td><%:Model.MOBILE%></td>
        </tr>
        <tr>
            <th>婚姻</th>
            <td><%if (Model.ISMARRIED)
                  {%>已婚<% }
                  else
                  {%>未婚<% }%></td>
        </tr>
        <tr>
            <th>學歷</th>
            <td><%:Model.EDU%></td>
        </tr>
        <tr>
            <th>職業</th>
            <td><%:Model.JOB%></td>
        </tr>
        <tr>
            <th>收入</th>
            <td><%:Model.INCOME%></td>
        </tr>
        <tr>
            <th>國籍</th>
            <td><%:Model.COUNTRY%></td>
        </tr>
        <tr>
            <th>地址</th>
            <td><%:Model.ZIP%><%:Model.CITY%><%:Model.ADDRESS%><%:Model.ADDRESS%></td>
        </tr>
        <tr>
            <th>是否訂閱電子報</th>
            <td><%:Model.ISEDM%></td>
        </tr>   
        <tr>
            <th>是否啟用</th>
            <td>
                <input type="radio" name="mstatus" value="false" <%if(!Model.STATUS){ %> checked <%} %>/ > 停權　　
                <input type="radio" name="mstatus" value="true" <%if(Model.STATUS){ %> checked <%} %>/ > 啟用
            </td>
        </tr>    
    </table>
    <%}%>
    </div>
</body>
<script type="text/javascript">
    $("input[name=mstatus]").change(function () { $.get("/admin/membermanagement/Api_changestatus?mguid=<%:Model.MGUID %>&status=" + $(this).val(), function (data) { alert(data); }); });
</script>
</html>
